<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><?=getValInArr(getSess(SESS_DIC),array('webInfo','webtitle'))?></title>
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<script src="<?php echo base_url().'public/home/js/' ?>jquery.js"></script>
	<!-- <script src="<?php echo base_url().'public/home/js/' ?>jquery.js"></script> -->

	<!-- <script src="<?php echo base_url(); ?>public/home/bootstrapvalidator-master/vendor/jquery/jquery.min.js"></script> -->

	
	<link rel="stylesheet" href="<?php echo base_url().'public/home/bootstrap/css/' ?>bootstrap1.min.css">
	<link rel="stylesheet" href="<?php echo base_url().'public/h_ui/lib/Hui-iconfont/1.0.8/' ?>iconfont.css">
	<link rel="stylesheet" href="<?php echo base_url().'public/home/css/' ?>mui.min.css">
	<link rel="stylesheet" href="<?php echo base_url().'public/home/css/' ?>class_assess.css">
	<script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>class_assess.js"></script>
	<script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>function.js"></script>
	<?php 
		include_once "public/home/html/alert.php";
		include_once "public/home/html/search-select.php";
		include_once 'public/home/html/mobile_select.php';
	?> 
	<!-- <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script> -->
	<script src="<?php echo base_url().'public/js/'?>popper.min.js"></script>
	<script src="<?php echo base_url().'public/home/bootstrap/js/'?>bootstrap1.min.js"></script>
	<link href="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/css/'?>bootstrap-select.min.css" rel="stylesheet" />
	<script src="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/js/'?>bootstrap-select.min.js"></script>
	<script src="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/js/i18n/'?>defaults-zh_CN.min.js"></script>

	
	<!-- 分页插件 -->
	<?php include_once "public/home/html/step.php"  ?>
	<!-- 图片上传 -->
	<?php include_once "public/home/html/imgupload.php"  ?>
	<!-- <?php include_once "public/home/html/validator1.php"  ?> -->
	<!-- 日期选择控件 -->
<script src='<?php echo base_url().'public/home/mobile_date/' ?>jdate.min.js'></script>
	
	
	<title>听课评价</title>	
</head>
<body>
	<input type="hidden" class="url" name="url" value="<?php echo base_url(); ?>">
	
	<!-- <div class="header div_margin" >听课评价</div> -->
	<div class="search-head header mui-bar mui-bar-nav row" style="background-color: #f7f9fa; border:none;">
		<div class="col-xs-1" style="margin-top: 3%">
			<a class=" Hui-iconfont Hui-iconfont-slider-left" href="javascript:void(0)" onclick="history.back();" style="color: #C9C9C9"></a>
		</div>
		<div class="col-xs-11">
			<h1 class="mui-title" style="color:#333;">听课评价</h1>
		</div>
	</div>

	<div id="steps" style="margin-top: 70px"></div>

	<script>

		$(function () {
			initStep();
		});

		function initStep() {
			$("#steps").step({
				stepNames: ['课程简要', '教学水平', '教学效果', '其他', '听课内容 ', '完成'],
				initStep: 1
			});
			}

		// function gotoStep(step) {
		// 	$("#steps").step("goto", step);
		// 	for(var i=1;i<=6;i++){
		// 		$("#step"+i).hide();
		// 	}
		// 	$("#step"+step).show();
		// }

	</script>
	<!-- demo -->
	<div class="select_box class_type_demo"></div>
	<div class="select_box title_demo"></div>
	<div class="select_box age_groups_demo"></div>
	<div class="select_box teachers_attribute_demo"></div>
	<div class="select_box score_demo"></div>	

	<input type="hidden" name="listen_name" value="<?php $_SESSION[SESS_USER_HOME]['username']?>">
	<form>
	<div id="step1" >		
	<input type="hidden" id="is_add" name='is_add' value="<?php echo $is_add?>">
	<input type="hidden" name='sub_role' value="<?php $role=$_SESSION[SESS_USER_HOME]['sub_role_id'].','.$_SESSION[SESS_USER_HOME]['role_id'];$role=explode(',',$role);foreach($role as $k=>$v){if($v==WebRole::SchoolSupervisor[XPHEnum::Value]){echo $v;break;}else if($v==WebRole::UnitSupervisor[XPHEnum::Value]){echo $v;break;}}?>">
	<!-- <?php 
		$role=$_SESSION[SESS_USER_HOME]['sub_role_id'].','.$_SESSION[SESS_USER_HOME]['role_id'];
		$role=explode(',',$role);
		foreach ($role as $k => $v) {
			if($v==WebRole::SchoolSupervisor[XPHEnum::Value] || WebRole::UnitSupervisor[XPHEnum::Value]){
				echo $v;
			}
		}
	 ?> -->
			<!-- <div class='div_border row'>
				<div class="col-xs-3 tag_name  " >编号</div>
				<div class="col-xs-9 tag_val ">
					<input type="text" placeholder="请输入编号" class="form-control" id="attend1" name="attend1" value='<?php if(isset($attend))echo $attend['academic_year'];?>'>
				</div>
			</div> -->
			<div class='div_border row'>
				<div class="col-xs-3 tag_name  " >学年</div>
				<div class="col-xs-9 tag_val ">
					<input type="text" placeholder="请输入学年" class="form-control" id="attend2" name="attend2" readOnly value='<?php if(isset($attend))echo $attend['academic_year']; if(isset($class_detail['academic_year'])){echo $class_detail['academic_year'];}?>'>
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >学期</div>
				<div class="col-xs-9 tag_val  " >
					<input type="text" placeholder="请输入学期" class="form-control" id="attend3" name="attend3" readOnly value='<?php if(isset($attend))echo $attend['semester']; if(isset($class_detail['semester'])){echo $class_detail['semester'];}?>'>
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >听课班级</div>
				<div class="col-xs-9 tag_val  " >
					<input type="text" placeholder="请输入听课班级" class="form-control" id="attend4" name="attend4" readOnly value="<?php if(isset($attend)){echo $attend['listen_class'];} if(isset($class_detail['name'])){echo $class_detail['classname'];}?>">
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >课程名称</div>
				<div class="col-xs-9 tag_val  " >
					<input type="text" placeholder="请输入课程名称" id="class_name" name="class_name"  readOnly value="<?php if(isset($attend)){echo $attend['class_name'];} if(isset($class_detail['name'])){echo $class_detail['name'];}?>" >
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >课程类型</div>
				<div class="col-xs-9 tag_val"   id="class_type" onclick='class_type.openSelectSwiper();' >
					<input type="hidden" readonly name="class_type" value="<?php if(isset($class_detail['type'])){echo estr($class_detail,'type');} if(isset($attend['class_type'])){echo $attend['class_type'];} ?>">
				<?php if(isset($class_detail['type'])){echo estr($class_detail,'type');} if(isset($attend['class_type'])){echo $attend['class_type'];} ?>				
				</div>

			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >授课教师</div>
				<div class="col-xs-9 tag_val  " >
					<input type="text" placeholder="请输入授课教师" id="teacher_name"  readOnly name="teacher_name" value="<?php if(isset($attend)){echo $attend['teacher_name'];} if(isset($teacher_detail['username'])){echo $teacher_detail['username'];}?>">
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >教师职称</div>
				<div class="col-xs-9 tag_val  " id="teacher_title" onclick='teacher_title.openSelectSwiper();'>
					<input type="text" name="title" disabled="true"  value="<?php if(isset($teacher_detail['title'])){echo (new Title)->show($teacher_detail['title']);}if(isset($attend['title'])){echo $attend['title'];} ?>" placeholder="请选择">
					<!-- <?php if(isset($class_detail['type'])){echo estr($class_detail,'title');} if(isset($attend['title'])){echo $attend['title'];} ?> -->
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >所属二级学院</div>
				<div class="col-xs-9 tag_val  " >
					<input type="text"  readOnly id="dept_name" name="dept_name" value="<?php if(isset($attend)){echo $attend['dept_name'];} if(isset($teacher_detail['dept_name'])){echo $teacher_detail['dept_name'];}?>">
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >教师年龄层次</div>
				<div class="col-xs-9 tag_val  " id='age_groups' onclick='age_groups.openSelectSwiper();'>
					<input type="text" name="age_groups" disabled="true" value="<?php if(isset($teacher_detail['age_groups'])){echo (new AgeGroups)->show(estr($teacher_detail,'age_groups'));} if(isset($attend['age_groups'])){echo $attend['age_groups'];} ?>" placeholder="请选择">
					<?php if(isset($teacher_detail['age_groups'])){echo (new AgeGroups)->show(estr($teacher_detail,'age_groups'));} if(isset($attend['age_groups'])){echo $attend['age_groups'];} ?>
					<!-- <?php 
						echo "<select class='' id='age_groups' name='age_groups'>";
						foreach ((new AgeGroups)->getAll() as $k => $v) {
							echo "<option value='".$v[XPHEnum::Caption]."'>".$v[XPHEnum::Caption]."</option>";
						}
						if($is_add==0){
							echo "</select><script>$('#age_groups').selectpicker('val', '".(new AgeGroups)->show($teacher_detail['age_groups'])."');</script>";
						}else{
							echo "</select><script>$('#age_groups').selectpicker('val', '".$attend['age_groups']."');</script>";
						}
						
					 ?> -->
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >教师属性</div>
				<div class="col-xs-9 tag_val  " id='teachers_attribute' onclick='teachers_attribute.openSelectSwiper();' >
					<input type="text"  disabled="true" name="teachers_attribute" value="<?php if(isset($teacher_detail['teachers_attribute']))echo (new TeachersAttribute)->show(estr($teacher_detail,'teachers_attribute'));if(isset($attend['teachers_attribute'])){echo $attend['teachers_attribute'];} ?>" placeholder="请选择">
					<?php if(isset($teacher_detail['teachers_attribute']))echo (new TeachersAttribute)->show(estr($teacher_detail,'teachers_attribute'));if(isset($attend['teachers_attribute'])){echo $attend['teachers_attribute'];} ?>					
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >听课地址</div>
				<div class="col-xs-9 tag_val  " >
					<input type="text" readOnly  placeholder="请输入听课地址" id="listen_address" name="listen_address" value="<?php if(isset($attend)){echo $attend['listen_address'];} if(isset($class_detail['course_units'])){echo $class_detail['classroom'];}?> ">
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >开课单位</div>
				<div class="col-xs-9 tag_val  " >
					<input type="text"  readOnly placeholder="请输入开课单位" id="course_units" name="course_units" value="<?php if(isset($attend)){echo $attend['course_units'];} if(isset($class_detail['course_units'])){echo $class_detail['course_units'];}?>">
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >听课时间</div>
				<div class="col-xs-9 tag_val  " >
					<input type="text"  readOnly placeholder="请选择听课时间" id="listen_time" name="listen_time" value="<?php if(isset($attend['listen_time'])&&$attend['listen_time']!=null){echo date('Y-m-d H:i',$attend['listen_time']);}if(isset($class_detail['listen_time'])){echo date('Y-m-d H:i',$class_detail['listen_time']);}?>">
				</div>
			</div>
			
		</form>
		<input type="hidden" id="class_id" name="class_id"value="<?php if(isset($class_id)){echo $class_id;}else{echo '0';}?>">
		<!-- <input type="hidden" id="teacher_id" name="teacher_id" value="<?php if(isset($class_id)){ echo $teacher_id;}else{echo '0';}?>"> -->
		<input type="hidden" id="teacher_id" name="teacher_id" value="<?php if(isset($class_id)){ echo $teacher_code;}else{echo '0';}?>">
		<div>	
			<input type="button" id="goto_step2" class="btn btn-primary step_default"  value="下一步"></input>		
		</div>
	</div>

	
	
	<div id="step2"  style='display: none;' >
		<form class="role" >
			<!-- <?php 
			if(isset($attend_teaching_content)){
				foreach ($attend_teaching_content as $k => $v) {
				$score=array();					
					for($i=1;$i<=$attend_teaching_content[$k]['score'];$i++){
						$score[$i-1]=$i;
					}
					// $question=(new TeachingContent)->show($k+1);
					$question=$v['content'];
					$id=$k+1;
					echo "<div class='margin-bottom' ><div >".$id.".".$question.'【'.$v['score'].'分】'."<input type='hidden' name='attend_teaching_content[".$k."]'  value='".$question."'></div><input type='text' placeholder='请选择分数' id='teachingLevel[".$id."] name='teachingLevel[".$id."] onClick='score(this)' ></div>";
					$select="";
					// foreach ($score as $k2 => $v2) {						
					// 	echo "<option value='".$v2."' class='form-control'>".$v2."</option>";
					// }
					// if($is_add==0){
					// 	echo "</select><input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'></div><script>$('#teachingLevel".$id."').selectpicker('val', '0');</script>";
					// }else{
					// 	echo "</select><input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'></div><script>$('#teachingLevel".$id."').selectpicker('val', '".$v['get_score']."');</script>";
					// }					
				}
			}
			?> -->
			<?php 
			if(isset($attend_teaching_content)){
				foreach ($attend_teaching_content as $k => $v) {
					for($i=1;$i<=$attend_teaching_content[$k]['score'];$i++){
						$score[$i-1]=$i;
					}
					$question=$v['content'];
					$id=$v['key_index'];
					// $id=$k+1;
					echo "<div class='margin-bottom' ><div >".$id.".".$question.'【'.$v['score'].'分】'."<input type='hidden' name='attend_teaching_content[".$k."]'  value='".$question."'></div><input placeholder='  请打分' id='teachingLevel".$id."' name='teachingLevel[".$k."]'  type='text' readonly class='input' value='".$v['get_score']."'>";
					$select="";
					
					if($is_add==0){
						echo "<input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'><input type='hidden' value=".$id." name='attend_teaching_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_list_id[".$k."]'></div>";
					}else{
						echo "<input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'><input type='hidden' value=".$id." name='attend_teaching_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_list_id[".$k."]'></div>";
					}
					$num=count($score);
					$key=$num-1;
					echo "<script>
					var num=".$num.";
					var optionlist=new Array();
					for(var i=1;i<=num;i++){
						optionlist.push(i);
					}
					new MobileSelect({
					  trigger: '#teachingLevel".$id."',
					  title: '请选择分数',
					wheels: [
					            {data:optionlist}
					  ],
					  position:[".$key."],//初始化定位 打开时默认选中的哪个 如果不填默认为0
					  callback:function(indexArr, data){
					        $('#teachingLevel".$id."').val(data[0]);
					        $('#teachingLevel".$id."').blur();
					        levelsum();
					  }
					})</script>";

				}
			}
			?>
			<?php 
			if(isset($attend_teaching_implementation)){
				foreach ($attend_teaching_implementation as $k => $v) {	
				$score=array();				
					for($i=1;$i<=$attend_teaching_implementation[$k]['score'];$i++){
						$score[$i-1]=$i;
					}
					// $question=(new TeachingImplementation)->show($k+1);
					$question=$question=$v['content'];
					$id=$v['key_index']+2;
					$id_1=$v['key_index']+3;
					// $id=$k+3;
					// $id_1=$k+4;
					echo "<div class='margin-bottom' ><div >".$id_1.".".$question.'【'.$v['score'].'分】'."<input type='hidden' name='attend_teaching_implementation_content[".$k."]'  value='".$question."'></div><input type='text' class='input' id='teachingLevel".$id_1."'  name='teachingLevel[".$id."]' readonly placeholder='  请打分' value='".$v['get_score']."'>";
					
					if($is_add==0){
						echo "<input type='hidden' value=".end($score)." name='attend_teaching_implementation_score[".$k."]'><input type='hidden' value=".$v['key_index']." name='key_index[".$k."]'><input type='hidden' value=".$v['key_index']." name='attend_teaching_implementation_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_implementation_list_id[".$k."]'></div>";
					}else{
						echo "<input type='hidden' value=".end($score)." name='attend_teaching_implementation_score[".$k."]'><input type='hidden' value=".$v['key_index']." name='key_index[".$k."]'><input type='hidden' value=".$v['key_index']." name='attend_teaching_implementation_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_implementation_list_id[".$k."]'></div>";
					}
					$num=count($score);
					$key=$num-1;
					echo "<script>
						var num=".$num.";
						var optionlist=new Array();
						for(var i=1;i<=num;i++){
							optionlist.push(i);
						}
						new MobileSelect({
						  trigger: '#teachingLevel".$id_1."',
						  title: '请选择分数',
						wheels: [
						            {data:optionlist}
						  ],
						  position:[".$key."],//初始化定位 打开时默认选中的哪个 如果不填默认为0
						  callback:function(indexArr, data){
						        $('#teachingLevel".$id_1."').val(data[0]);
						        $('#teachingLevel".$id_1."').blur();
						        levelsum();
						  }
						})</script>";					
				}
				
			}
				
					foreach ($attend_teaching_level as $k => $v) {
						echo "<input type='hidden' name='attend_teaching_level_item[".$k."]' value='".$v['item']."'>";
						echo "<input type='hidden' name='attend_teaching_level_remark[".$k."]' value='".$v['remark']."'>";
					}
				
			?>
		</form>
		<div class="teaching_level_sum"><?php if(isset($attend)){echo "当前总分为：".$attend['teaching_level_score'];} ?></div>
		<div>
			<input type="button" id="back_step1" class="btn btn-primary next_step" onclick="previousStep()" value="上一步">
			<input type="button" id="goto_step3" class="btn btn-primary next_step" value="下一步">		
		</div>
	</div>
	
	<div id="step3" style="display: none;">		
		<form class="role">
			<div>
				<?php 
				if(isset($attend_student_status)){
					foreach ($attend_student_status as $k => $v) {	
					$score=array();				
						for($i=1;$i<=$attend_student_status[$k]['score'];$i++){
							$score[$i-1]=$i;
						}
						// $question=(new StudentStatus)->show($k+1);
						$question=$v['content'];
						$id=$v['key_index'];
						// $id=$k+1;
						echo "<div class='margin-bottom' ><div >".$id.".".$question.'【'.$v['score'].'分】'."<input type='hidden' name='attend_student_status[".$k."]'  value='".$question."'></div><input id='teachingEffect".$id."' name='teachingEffect[".$k."]'class='input' type='text' readonly placeholder='  请打分' value='".$v['get_score']."'>";
						if($is_add==0){
							echo "<input type='hidden' value=".end($score)." name='attend_student_status_score[".$k."]'><input type='hidden' value=".$id." name='attend_student_status_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_student_status_list_id[".$k."]'></div>";
						}else{
							echo "<input type='hidden' value=".end($score)." name='attend_student_status_score[".$k."]'><input type='hidden' value=".$id." name='attend_student_status_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_student_status_list_id[".$k."]'></div>";
						}	
						$num=count($score);
						$key=$num-1;
						echo "<script>
						var num=".$num.";
						var optionlist=new Array();
						for(var i=1;i<=num;i++){
							optionlist.push(i);
						}
						new MobileSelect({
						  trigger: '#teachingEffect".$id."',
						  title: '请选择分数',
						wheels: [
						            {data:optionlist}
						  ],
						  position:[".$key."],//初始化定位 打开时默认选中的哪个 如果不填默认为0
						  callback:function(indexArr, data){
						        $('#teachingEffect".$id."').val(data[0]);
						        $('#teachingEffect".$id."').blur();
						        effectsum();
						  }
						})</script>";					
					}
					foreach ($attend_teaching_level as $k => $v) {
						echo "<input type='hidden' name='attend_student_status_item[".$k."]' value='".$v['item']."'>";
						echo "<input type='hidden' name='attend_student_status_remark[".$k."]' value='".$v['remark']."'>";
					}
				}
				?>	
			</div>
		</form>
		<div class="teaching_effect_sum"><?php if(isset($attend)){echo "当前总分为：".$attend['teaching_effect_score'];} ?></div>
		<div>
			<input type="button" id="back_step2" class="btn btn-primary next_step" onclick="previousStep()" value="上一步"></input>
			<input type="button" id="goto_step4" class="btn btn-primary next_step"  value="下一步"></input>		
		</div>
	</div>

	<div id="step4" style="display: none">
		<form class="role">
			<div>
				<div class='title' style="margin-left: 3%">教学准备开展情况</div>				
				<?php 
				if(isset($attend_teaching_readiness)){
					foreach ($attend_teaching_readiness as $k => $v) {			
						$item=$k+1;				
						echo "<div class='div_border1 div_float_left'>				
						<div class=' tag_name div_float_left 'style='width: 70px' >".$attend_teaching_readiness[$k]['item']."<input type='hidden' name='attend_teaching_readiness_content[".$k."]' value='".$attend_teaching_readiness[$k]['item']."'></div>
						<div class='div_float_left col-xs-3 tag_val'style='margin-top:0' ><input name='attend_teaching_readiness_option[".$k."]' type='hidden' value='".$attend_teaching_readiness[$k]['option']."'>";
						$option=explode(",",$attend_teaching_readiness[$k]['option']);

						foreach ($option as $k1 => $v1) {
							if($v['check_value']==$v1){
								$checked="checked";
							}else{
								$checked="";
							}						
							echo "<div class='radio' style='float: left;margin-top: 5%;'><label ><input name='teachingReadiness[".$k."]' ".$checked." type='radio' value='".$v1."'  style='margin-left: -28px;margin-top: 2px' /><span >".$v1."</span></label></div><div style='width:50px;height:50px' class='div_float_left'></div>";
							
							
						}
						echo "</div></div>";
					}
				}
				?>
				
			</div>
		</form>
		<input type="button" id="back_step3" class="btn btn-primary next_step"  value="上一步"></input>
		<input type="button" id="goto_step5" class="btn btn-primary next_step"  value="下一步"></input>
	</div> 

	<div id="step5" class="form-group" style="display: none;" >		
		<form action="">
			<div>
				<div class='title' style="margin-left: 3%">学生常态</div>		
				<?php 
				foreach ($attend_students_norm as $k => $v) {
					$item=$k+1;
					if($k==3){
						echo "<input type='hidden' name='attend_students_norm_item[".$k."]' value='".$v['item']."'><input type='hidden' placeholder='请输入".$v['item']."' id='studentsNorm".$item."' name='studentsNorm[".$k."]' value='";
						if($v['check_value']==null){
							echo "0'>";
						}else{
							echo $v['check_value']."'>";
						}
						continue;
					}
					echo "<div class='div_border row'>
					<div class='col-xs-3 tag_name'>".$v['item']."<input type='hidden' name='attend_students_norm_item[".$k."]' value='".$v['item']."'></div>
					<div class='col-xs-9 tag_val  ' >
					<input type='number' placeholder='请输入".$v['item']."' id='studentsNorm".$item."' name='studentsNorm[".$k."]' value='".$v['check_value']."'>
					</div>
					</div>";
				}
				?>
				<div class='title' style="margin-left: 3%">其他</div>		
				<div class="div_border1 div_float_left">
					<div class=" tag_name  div_float_left" style="margin-left:3%;">课堂设施设备完好情况</div>
					<div class="div_float_left "  style="margin-top: 2%">
						<?php 					

						$item=explode(",",$attend_classroom_facilities['option']);
						
						
						foreach ($item as $k => $v) {
							$checked="";
							if($attend_classroom_facilities['check_value']==$v){
								$checked="checked";
							}
							if($k==0){
								echo "<div class='radio' style='float: left;margin-top: 8%' >
								<label style=''><input id='item13' type='radio' value='".$v."' name='classroom_facilities' style='margin-left: -16px;margin-top: 2px'".$checked.">".$v."</label>
								</div>";
							}else{
								echo "<div class='radio' style='margin-left: 30px;margin-top: 8%;float: left' >
								<label style=''><input id='item13' type='radio' value='".$v."' name='classroom_facilities' style='margin-left: -23px;margin-top: 2px'".$checked.">".$v."</label>
								</div>";
							}
							echo "<input type='hidden' name='attend_classroom_facilities_option' value='".$attend_classroom_facilities['option']."'>";
						}								

						?>
					</div>
				</div>
				<div class="div_border1 div_float_left">
					<div class=" tag_name   div_float_left" style="margin-left:3%;">课堂环境卫生情况
					</div>
					<div class="div_float_left " style="width: 40%" style="margin-top: 2%">
						<?php 
							$item=explode(",",$attend_classroom_environmental['option']);
							
							foreach ($item as $k => $v) {
								$checked="";
								if($attend_classroom_environmental['check_value']==$v){
									$checked="checked";
								}
								if($k==0){
									echo "<div class='radio' style='float: left;margin-top: 8%' >
									<label style=''><input id='item14' type='radio' value='".$v."' name='classroom_environmental' style='margin-left: -16px;margin-top: 2px'".$checked.">".$v."</label>
									</div>";
								}else{
									echo "<div class='radio' style='margin-left: 30px;margin-top: 8%;;float: left;' >
									<label style=''><input id='item14' type='radio' value='".$v."' name='classroom_environmental' style='margin-left: -16px;margin-top: 2px;float: left;'".$checked.">".$v."</label>
									</div>";
								}

							}
							echo "<input type='hidden' name='classroom_environmental_option' value='".$attend_classroom_environmental['option']."'>";
						 ?>
						</div>
					</div>				
				
				<div>
					<input type="button" id="back_step4" class="btn btn-primary next_step" onclick="previousStep()" value="上一步"></input>
					<input type="button" id="goto_step6" class="btn btn-primary next_step" value="下一步"></input>		
				</div>			

		</form>
		
	</div>
</div>

	<div id="step6" class="form-group" style="display: none;">
		
		<div class="clear"></div>
		<form id="step6_form">
			<div class="addlist">
				<!-- <?php 

				if($is_add!=0){
					foreach ($attend_record as $k => $v) {
						// if(isset($attend_record)){
							echo "<div class='content'>
							<div class='div_border row'>
							<div class='col-xs-2 tag_name ' >时间</div>
							<div class='col-xs-9 tag_val '  >
							<input type='text' readOnly class='form-control time_HMS write' id='recordid1' name='attend_record[0]' value='".$attend_record[$k]['time']."'' >
							</div>
							</div>
							<div class='div_border' style='height: auto!important;'>
							<div class='div_border row'>
							<div class='col-xs-3 tag_name  ' >教学活动</div>
							<div class='col-xs-9 tag_val '>
							<input type='text' placeholder='请输入教学活动' class='form-control write' id='recordid2' name='attend_record[1]' value='".$attend_record[$k]['activity']."'>
							</div>
							</div>
							<div class='div_border row'>
							<div class='col-xs-3 tag_name  ' >随堂评注</div>
							<div class='col-xs-9 tag_val '>
							<input type='text' placeholder='请输入随堂评注' class='form-control write' id='recordid3' name='attend_record[2]' value='".$attend_record[$k]['commentary']."'>
							</div>
							</div>
							</div>
							</div>";
						// }
					}
				}else{
					echo "";
				}
				?> -->
				<!-- <input type="hidden" name="attend_record" id="attend_record" > -->
				<form>
				<div class='content'>
					<div class='div_border row'>
					<div class='col-xs-2 tag_name ' >时间</div>
					<div class='col-xs-9 tag_val '  >
					<input type='text' readOnly  class='form-control time_HMS write' id='recordid1'  name='attend_record_time' value="<?php if(isset($attend_record) && $attend_record!=null){echo $attend_record[0]['time'];} ?>">
					</div>
					</div>
					
					
					</div>
					</div>
				<div class="tag_name  " style="margin-top: 0px !important;padding-top: 2%">听课记录(可添加附件)</div>
				<div class="tag_val  " style="padding-right: 5%;padding-left: 3%;margin-top: 10px;margin-left: 10px;position: relative;width:100%" >
					<!-- <textarea type="text" rows="4" placeholder="请输入听课记录" class="form-control" id="recordid3" name="attend_record_content">	
					</textarea> -->
					<textarea type="text" rows="4" placeholder="请输入听课记录" class="form-control" id="recordid3" name="attend_record_content"><?php if($attend_record!=null){echo $attend_record[0]['commentary'];}?></textarea>
				</div>
				
				<div class="tag_name  " style="margin-top: 0px !important;padding-top: 2%">意见或建议</div>
				<div class="tag_val  " style="padding-right: 5%;padding-left: 3%;margin-top: 10px;margin-left: 10px;position: relative;width:100%" >
					<textarea type="text" rows="4" placeholder="请输入意见或建议" class="form-control" id="attend5" name="attend5"><?php if(isset($attend)){echo $attend['advice'];} ?></textarea>
				
			
				
			</div>
			</form>
			<input type="hidden" name="recordcount" id="recordcount" value="1">
			<div id="img_upload" style="margin-top: 5%;margin-left: 5%">
				<ul class="upload-ul clearfix">
					<?php 
					if(isset($attend_img)){
						foreach ($attend_img as $k => $v) {
							$file = $v['img']; 
							if($fp = fopen($file,"rb", 0)) 
							{ 
								$gambar = fread($fp,filesize($file)); 
								fclose($fp); 


								$base64 = chunk_split(base64_encode($gambar)); 
								    // 输出
								    $encode = "data:image/jpeg;base64," . $base64; //完整点的
								}
								echo "<li id='fileBox_WU_FILE_0' class='diyUploadHover'>
								<div class='viewThumb'>					    
								<input type='hidden'>					    
								<div class='diyBar'> 							
								<div class='diyProgress'>0%</div> 					    
								</div> 					    
								<p class='diyControl'><span class='diyLeft'><i></i></span>
								<span class='diyCancel'><i></i></span>
								<span class='diyRight'><i></i></span>
								</p>
								<img src='".$encode."' >
								</div>
								</li>";
							}
						}
						?>
						<li class="upload-pick" style='height: 90px'>
							<div class="webuploader-container clearfix" id="Upload"><div class="webuploader-pick webuploader-pick-hover"></div><div id="rt_rt_1dfpj0lt21pse1nlu1lgl1fjr1nfk1" style="position: absolute; top: 0px; left: 0px; width: 120px; height: 90px; overflow: hidden; bottom: auto; right: auto;"><input type="file" name="file" class="webuploader-element-invisible" multiple="multiple" accept=""><label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255);"></label></div></div>
						</li>
					</ul>
					<!-- <input type="hidden" name="attend_img[]" id="attend_img" > -->
					<form>
					<div id='img'></div>
					</form>
				</div>


			</form>	
			<div style="margin-top: 5%">
				<input type="button" id="back_step5" class="btn  btn-primary lastbtn" onclick="previousStep()" value="上一步"></input>		
				<input type="button" id="save" class="btn btn-primary lastbtn"  value="保存" ></input>
				<input type="button" id="submit" class="btn lastbtn btn-primary " value="提交" ></input>
			</div>
		</div>


	</div>
</body>
</html>